#include "head.h"

//添加epoll
int add_epoll(int epoll_fd, int socket_fd){
    struct epoll_event event;
    event.events = EPOLLIN;
    event.data.fd = socket_fd;

    int ret_epoll_ctl = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, socket_fd, &event);
    ERROR_CHECK(ret_epoll_ctl, -1, "epoll_ctl_error");

    return 0;
}



